package com.tbh.annotation.java.impor;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@Import({A.class}) // 导入A的bean的声明
public class ConfigB {

    @Bean
    public B a() {
        return new B();
    }
}
